<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use App\Admin\Extensions\Traits\ModelTree;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class VipWelfare extends Model
{
    use HasFactory;
    use ModelTree;
    
    protected $guarded = ['id'];
    
    public function vipCategory()
    {
        return $this->belongsTo(VipCategory::class);
    }

     public function welfareDetails()
    {
        return $this->hasMany(VipWelfareDetail::class, 'welfare_id', 'id');
    }
}
